<table>
  <g:each var="volca" in="${results}" status="records">
    <g:if test="${records == 0}" >
    <thead>
      <tr>
       <th>volcanoName</th>  
       <th>volcanoType</th>
       <th>status</th>
       <th>volcanicRef</th>      
      </tr>
      </thead>
  </g:if>  
    <tr>
      <td>${volca.volcanoName }</td>  
      <td>${volca.volcanoType}</td>
      <td>${volca.volcanicRef}</td>
      <td>${volca.status }</td>      
     </tr>   
  </g:each>
  <g:if test="${records == 0}" >
    <tr>No records exists</tr>    
  </g:if>  
</table>